Package com.cisco.pt.ipc.sim.impl
Class AcsServerProcessImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.AcsServerProcessImpl
- All Implemented Interfaces:
IPCObject,AcsServerProcess,Process
Information provided by the PKI file:
\class AcsServerProcess
\brief AcsServerProcess holds and manipulates the ACS server process.
\example network().getDevice("Router0").getProcess("AcsServer")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionAcsServerProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddToClientMap(IPAddress hostIp, AcsServerType serverType, String name, String keyStr) Information provided by the PKI file:booleanaddToUserMap(String userName, String description, String password) Information provided by the PKI file:voiddeleteFromClientMap(IPAddress hostIp, AcsServerType serverType) Information provided by the PKI file:voiddeleteFromUserMap(String userName) Information provided by the PKI file:voidenableACSServerService(boolean status) Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:booleanInformation provided by the PKI file:voidvoidMethods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
AcsServerProcessImpl
public AcsServerProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
addToUserMap
Information provided by the PKI file:
\brief Adds a user record with the specified username, description, and password. \param userName, the username of the user record to add. \param description, the description of the user record to add. \param password, the password of the user record to add. \return bool, true if user record added successfully, otherwise false.- Specified by:
addToUserMapin interfaceAcsServerProcess- Parameters:
userName- Takes in a parameter of userNamedescription- Takes in a parameter of descriptionpassword- Takes in a parameter of password- Returns:
- boolean Returns a boolean
-
deleteFromUserMap
Information provided by the PKI file:
\brief Removes the user record with the specified username, description, and password. \param userName, the username of the user record to remove.- Specified by:
deleteFromUserMapin interfaceAcsServerProcess- Parameters:
userName- Takes in a parameter of userName
-
addToClientMap
public boolean addToClientMap(IPAddress hostIp, AcsServerType serverType, String name, String keyStr) Information provided by the PKI file:
\brief Adds a client with the specified IP address, server type, name, and password. \param hostIp, the IP address of the client. \param serverType, the type of server. Server types: eTacacsServer = 0, eRadiusServer = 1 \param name, the name of the client. \param keyStr, the secret key for the client. \return bool, true if client added successfully, otherwise false.- Specified by:
addToClientMapin interfaceAcsServerProcess- Parameters:
hostIp- Takes in a parameter of hostIpserverType- Takes in a parameter of serverTypename- Takes in a parameter of namekeyStr- Takes in a parameter of keyStr- Returns:
- boolean Returns a boolean
-
deleteFromClientMap
Information provided by the PKI file:
\brief Removes the client with the specified username, description, and password. \param hostIp, the IP address of the client. \param serverType, the type of server. Server types: eTacacsServer = 0, eRadiusServer = 1 \param name, the name of the client. \param keyStr, the secret key for the client. \return bool, true if client removed successfully, otherwise false.- Specified by:
deleteFromClientMapin interfaceAcsServerProcess- Parameters:
hostIp- Takes in a parameter of hostIpserverType- Takes in a parameter of serverType
-
enableACSServerService
public void enableACSServerService(boolean status) Information provided by the PKI file:
\brief Removes the client with the specified username, description, and password. \param status, true enables the ACS service, false disables it.- Specified by:
enableACSServerServicein interfaceAcsServerProcess- Parameters:
status- Takes in a parameter of status
-
isEnabled
public boolean isEnabled()Information provided by the PKI file:
\brief Returns true if the ACS service is enabled, otherwise false. \return bool, true if the ACS service is enabled, otherwise false.- Specified by:
isEnabledin interfaceAcsServerProcess- Returns:
- boolean Returns a boolean
-
getUserRecordsAsString
Information provided by the PKI file:
\brief Returns a vector of all user records in string format: key:username,password,description \return Returns a vector of all user records in string format: key:username,password,description- Specified by:
getUserRecordsAsStringin interfaceAcsServerProcess- Returns:
- List<String> Returns a List<String>
-
getClientRecordsAsString
Information provided by the PKI file:
\brief Returns a vector of all client records in string format: key:username,password,description \return Returns a vector of all user records in string format: key:description,server_type_as_integer,hostip,keystring Server type = eTacacsServer=0, Server type = eRadiusServer=1- Specified by:
getClientRecordsAsStringin interfaceAcsServerProcess- Returns:
- List<String> Returns a List<String>
-
removeAllUserRecords
public void removeAllUserRecords()- Specified by:
removeAllUserRecordsin interfaceAcsServerProcess
-
removeAllClientRecords
public void removeAllClientRecords()- Specified by:
removeAllClientRecordsin interfaceAcsServerProcess
-